/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: LiYansheng
 * @Date: 2022-03-31 21:02:44
 * @LastEditors: CoderXZ
 * @LastEditTime: 2022-05-07 13:10:25
 */
import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [{
            path: '/',
            redirect: '/dashboard'
        },
        {
            path: '/',
            component: () => import( /* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: {
                title: '自述文件'
            },
            children: [{
                    path: '/dashboard',
                    component: () => import( /* webpackChunkName: "dashboard" */ '../components/page/Dashboard.vue'),
                    meta: {
                        title: '系统首页'
                    }
                },
                {
                    path: '/table',
                    component: () => import( /* webpackChunkName: "table" */ '../components/page/BaseTable.vue'),
                    meta: {
                        title: '基础表格'
                    }
                },
                {
                    // 权限页面
                    path: '/permission',
                    component: () => import( /* webpackChunkName: "permission" */ '../components/page/Permission.vue'),
                    meta: {
                        title: '权限测试',
                        permission: true
                    }
                },
                {
                    path: '/404',
                    component: () => import( /* webpackChunkName: "404" */ '../components/page/404.vue'),
                    meta: {
                        title: '404'
                    }
                },
                {
                    path: '/403',
                    component: () => import( /* webpackChunkName: "403" */ '../components/page/403.vue'),
                    meta: {
                        title: '403'
                    }
                },
                {
                    path: '/intent',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/Donate.vue'),
                    meta: {
                        title: '就业意向'
                    }
                },
                {
                    path: '/demo',
                    component: () => import('../components/page/Demo.vue'),
                    meta: {
                        title: 'Demo'
                    }
                },
                
                {
                    path: '/jobs',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/Jobs_show.vue'),
                    meta: {
                        title: '就业推荐'
                    }
                },
                {
                    path: '/tripartite',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/Tripartite.vue'),
                    meta: {
                        title: '三方协议'
                    }
                },
                {
                    path: '/setting',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/Setting.vue'),
                    meta: {
                        title: '个人设置'
                    }
                },
                ,
                {
                    path: '/stubase',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/StuBase.vue'),
                    meta: {
                        title: '学生基本信息'
                    }
                },
                {
                    path: '/teabase',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/TeaBase.vue'),
                    meta: {
                        title: '教师基本信息'
                    }
                },
                {
                    path: '/teaclass',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/TeaClass.vue'),
                    meta: {
                        title: '教师班级信息'
                    }
                },
                {
                    path: '/empanalysis',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/EmpAnalysis.vue'),
                    meta: {
                        title: '教师班级就业分析'
                    }
                },
                {
                    path: '/loginlog',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Loginlog.vue'),
                    meta: {
                        title: '登录日志'
                    }
                },
                {
                    path: '/classIntent',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/ClassIntent.vue'),
                    meta: {
                        title: '班级学生意向'
                    }
                },
                {
                    path: '/roles',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Roles.vue'),
                    meta: {
                        title: '角色管理'
                    }
                },
                {
                    path: '/menus',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Menus.vue'),
                    meta: {
                        title: '菜单管理'
                    }
                },
                {
                    path: '/schools',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Schools.vue'),
                    meta: {
                        title: '学校管理'
                    }
                },
                {
                    path: '/colleges',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Colleges.vue'),
                    meta: {
                        title: '学院管理'
                    }
                },
                {
                    path: '/subjects',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Subjects.vue'),
                    meta: {
                        title: '专业管理'
                    }
                },
                {
                    path: '/classes',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Classes.vue'),
                    meta: {
                        title: '班级管理'
                    }
                },
                {
                    path: '/students',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Students.vue'),
                    meta: {
                        title: '学生管理'
                    }
                },
                {
                    path: '/teachers',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Teachers.vue'),
                    meta: {
                        title: '教师管理'
                    }
                },
                {
                    path: '/job',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Jobs.vue'),
                    meta: {
                        title: '招聘管理'
                    }
                },
                {
                    path: '/willing',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Willings.vue'),
                    meta: {
                        title: '就业意愿管理'
                    }
                },
                {
                    path: '/admins',
                    component: () => import( /* webpackChunkName: "donate" */ '../components/page/admin/Admins.vue'),
                    meta: {
                        title: '管理人员管理'
                    }
                },
            ]
        },
        {
            path: '/login',
            component: () => import( /* webpackChunkName: "login" */ '../components/page/Login.vue'),
            meta: {
                title: '登录'
            }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});